<%-- 
    Document   : viewpoll
    Created on : 05/08/2011, 2:13:47 PM
    UserType   : Web User
    Author     : Lan Ye s4223901
    Description: This page contains the all the questions information in the opening poll.
    
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../header.jsp" %>

    <div id="content-container">
        <div id="content">    
            
            <h3 align ="center">Poll Name: ${poll.getName()}</h3>
            <div id="tablecontainer">

                <table class="gentable" cellpadding="3">
                        <tr>
                            <th>QuestionID</th>
                            <th>QuestionText</th>
                            <th>QuestionStatus</th>

                        </tr>
                     <c:forEach items="${questionsall}" var="questions">
                            <tr>
                                <td align ="center"><c:out value="${questions.getId()}"/></td>
                                <td align ="center"><c:out value="${questions.getText()}"/></td>
                                <td align ="center"><c:out value="${questions.getStatus()}"/></td>

                            </tr>
                        </c:forEach>

                    </table>

            </div>
         </div>
      </div>
		
<%@ include file="../footer.jsp" %>